package com.ncloud.system.service;

import com.ncloud.system.entity.Depart;
import com.ncloud.system.entity.DepartRole;
import com.ncloud.system.entity.Role;

import java.util.List;

/**
 * Created by shiqiang on 2017/7/28.
 */
public interface DepartService {
    Long insertDepart(Depart depart);
    Long updateDepart(Depart depart);
    int deleteDepart(Long departId);
    Depart getOneDepart(Long departId);
    DepartRole insertDepartRole(DepartRole departRole);

    int deleteDepartRole(Long departId);

    List<Depart> getDepartsByCompanyId(Long companyId);
    List<Role> getRolesByDepartId(Long departId);
    List<Depart> getDepartsAll();
    List<DepartRole> getDepartRoleByRole(Long roleId);
    int getDepartAccountNum(Long departId);
    int deleteDepartRoleState(Long departId);
    int deleteDepartState(Long departId);
}
